#ifndef SERVERMONITOR_H
#define SERVERMONITOR_H
#include "api/systemMonitor/servermonitorapi.h"
#include <Index.h>
#include <QJsonObject>
#include <QObject>
#include <ui_index.h>

class ServerMonitor : public QObject
{
    Q_OBJECT
public:
    explicit ServerMonitor(Ui::Index *ui,QObject *parent = nullptr);


    void init();

signals:

private:
    ServerMonitorApi serverMonitorApi;
    Ui::Index *ui;

    void initCpu(QJsonObject obj);
    void initMem(QJsonObject obj);
    void initServer(QJsonObject obj);
    void initJava(QJsonObject obj);
    void initDrive(QJsonObject obj);
};

#endif // SERVERMONITOR_H
